<template>
  <div>
    <Preson msg="Vite + Vue" v-if="isShow" />
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";
import Preson from "./components/Preson.vue";

let isShow = ref(true);

// 渲染的时候要等Preson组件全部执行完之后，才到app组件
onMounted(() => {
  console.log("父亲挂载完毕");
});
</script>

<style scoped></style>
